package com.example.datadashboard.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("widgets")
public class Widget {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long dashboardId;
    private String title;
    private String type;
    private String config;
    private Long dataSourceId;
    private Integer positionX;
    private Integer positionY;
    private Integer width;
    private Integer height;
    private Date createTime;
    private Date updateTime;
}
